import 'package:framelib/net/base_api.dart';

/**
 * Api统一管理
 */
class  IndexApi with BaseApi{
 static final IndexApi _singleton = IndexApi._internal();

 static IndexApi get instance => IndexApi();


 factory IndexApi() {
  return _singleton;
 }

 IndexApi._internal(){
  //做一些操作
 }

 /**
     获取标签列表 /api/voicechat/tag/list
     请求方式：POST
     基本参数
  */
 final String api_voicechat_tag_list="/api/voicechat/tag/list";

 /**
     根据标签Id查询房间列表(传标签ID) /api/voicechat/room/findRoomListByTag
     请求方式：POST
     基本参数 searchValue
  */
 final String api_voicechat_room_findRoomListByTag="/api/voicechat/room/findRoomListByTag";
 /**
     创建房间 /api/voicechat/room/createRoom
     "id":100,"roomName":"xt","roomCode":"27631037","yxRoomId":"3746464776","password":"",
     "charismaShow":1,"backgroundImg":"https://app-bucket-test.oss-accelerate.aliyuncs.com/document/gift/1535094622420729856.png",
     "lockFlag":"0","roomLabel":null,"homeownerNickname":"lx",
     "homeownerIcon":"https://app-bucket-test.oss-accelerate.aliyuncs.com/ios/77985415/230305/u678994803_4000x3000_20230305194926.jpg"
     请求方式：POST
     基本参数
     {
     "coverImg": "",
     "password": "",
     "roomName": "",
     "roomSynopsis": "",
     "tagId": 0
     }
  */
 final String api_voicechat_room_createRoom="/api/voicechat/room/createRoom";

 /**
  * 修改房间 api/voicechat/room/updateChatRoom
  */
 final String api_voicechat_room_updateChatRoom="/api/voicechat/room/updateChatRoom";

 /**
  * 查询我的房间
  */
 final String api_voicechat_room_queryMyRoom="/api/voicechat/room/queryMyRoom";

 /**
  * 根据房间code查询房间(传房间code)
  */
 final String api_voicechat_room_queryRoomByCode="/api/voicechat/room/queryRoomByCode";

 /**
  * 进入房间
  */
 final String api_voicechat_room_joinRoom="/api/voicechat/room/joinRoom";

 final String api_voicechat_room_joinRoomSuccess="/api/voicechat/room/joinRoomSuccess";

 final String api_voicechat_room_queryRoomAdminUser="/api/voicechat/room/queryRoomAdminUser";
 /**
  * 绑定用户房间关系(拉黑设置管理员)
  * {
     "relationType": 0,  关系类型:2:管理员,3:主播,4:黑名单,6:禁言
     "roomId": 0,
     "userId": 0
     }
  */
 final String api_voicechat_room_bindUserRoomRelation="/api/voicechat/room/bindUserRoomRelation";
/**
  * 解绑用户房间关系(拉黑设置管理员)
  * {
     "relationType": 0,  关系类型:2:管理员,3:主播,4:黑名单,6:禁言
     "roomId": 0,
     "userId": 0
     }
  */
 final String api_voicechat_room_unbindUserRoomRelation="/api/voicechat/room/unbindUserRoomRelation";
/**
  * 查询用户房间关系
  * {
     "roomId": 0,
     "userId": 0
     }
  */
 final String api_voicechat_room_queryUserRoomRelationType="/api/voicechat/room/queryUserRoomRelationType";
/**
  * 查询房间黑名单(传房间ID)  queryRoomForbidden
  * {
 * searchValue
     }
  */
 final String api_voicechat_room_queryRoomBlackUser="/api/voicechat/room/queryRoomBlackUser";
/**
  * 查询房间禁言名单(传房间ID)  queryRoomForbidden
  * {
 * searchValue
     }
  */
 final String api_voicechat_room_queryRoomGagUser="/api/voicechat/room/queryRoomGagUser";
/**
  * 根据云信ID查询用户信息  queryOnlineUserInfo
  * {
    {
    "roomId": 0,
    "yxAccids": []
    }
     }
  */
 final String api_voicechat_room_queryOnlineUserInfo="/api/voicechat/room/queryOnlineUserInfo";
/**
  * 锁定麦位  api/voicechat/room/lockMike
    {
    "mikeIndex": 0,
    "roomId": 0
    }
  */
 final String api_voicechat_room_lockMike="/api/voicechat/room/lockMike";
/**
  * 解锁麦位  api/voicechat/room/unlockMike
    {
    "mikeIndex": 0,
    "roomId": 0
    }
  */
 final String api_voicechat_room_unlockMike="/api/voicechat/room/unlockMike";
/**
  * 用户申请上麦  api/voicechat/room/onMike
    {
    "mikeIndex": 0,
    "roomId": 0
    }
  */
 final String api_voicechat_room_onMike="/api/voicechat/room/onMike";
 /**
  * 下麦  api/voicechat/room/downMike
     {
     "mikeIndex": 0,
     "roomId": 0
     }
  */
 final String api_voicechat_room_downMike="/api/voicechat/room/downMike";
 /**
     分页查询用户收藏的房间 /api/voicechat/room/queryCollectionRoomList
     请求方式：POST
     基本参数
     currentPage	页码		false integer(int32)
     endTime	结束时间		false string
     keyword	模糊搜索关键词		false string
     pageSize	步长		false integer(int32)
     startTime	开始时间		false string
  */
 final String api_voicechat_room_queryCollectionRoomList="/api/voicechat/room/queryCollectionRoomList";
/**
     分页查询用户浏览的房间 /api/voicechat/room/queryLatestRoom
     请求方式：POST
     基本参数
     currentPage	页码		false integer(int32)
     endTime	结束时间		false string
     keyword	模糊搜索关键词		false string
     pageSize	步长		false integer(int32)
     startTime	开始时间		false string
  */
 final String api_voicechat_room_queryLatestRoom="/api/voicechat/room/queryLatestRoom";

 /**
  * 取消房间收藏  /api/voicechat/room/uncollectRoom
     {
     "roomId": 0
     }
  */
 final String api_voicechat_room_uncollectRoom="/api/voicechat/room/uncollectRoom";
/**
  * 收藏房间  /api/voicechat/room/collectionRoom
     {
     "roomId": 0
     }
  */
 final String api_voicechat_room_collectionRoom="/api/voicechat/room/collectionRoom";
/**
  * 查询用户是否收藏了房间  /api/voicechat/room/queryUserCollectionRoomState
     {
     "roomId": 0
     }
  */
 final String api_voicechat_room_queryUserCollectionRoomState="/api/voicechat/room/queryUserCollectionRoomState";
/**
  * 举报反馈  /api/feedback/feedbackVideo
    {
    "beBlockUid": 10022,
    "block": 1,
    "feedbackType": "AD",
    "suggestion": "辣鸡主播",
    "url": ""
    }
  */
 final String api_feedback_feedbackVideo="/api/feedback/feedbackVideo";


}
